import Vue from 'vue'
import axios from 'axios'
import ViewUI from 'view-design'
import ElementUI from 'element-ui'
import _ from 'lodash'
import * as echarts from 'echarts'
import * as XLSX from 'xlsx'
import App from './App'
import store from './store'
import router from './router'

import 'view-design/dist/styles/iview.css'
import './permission'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
Vue.use(ViewUI)
Vue.use(XLSX)
Vue.use(ElementUI)
Vue.prototype._ = _
Vue.prototype.axios = axios
axios.defaults.baseURL = '/api'
Vue.prototype.$echarts = echarts

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App),
})
